home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 36 / qostnote.zip / EXTEND2.TEC < prev    next >
Text File  |  1990-07-05  |  6KB  |  97 lines

  1. ID:ET DESQview and Extended Memory
  2. Quarterdeck Technical Note
  3. by Dan Sallitt
  4.  
  5. Extended memory is memory with addresses higher than 1024K (1 
  6. megabyte).  Extended memory can only exist on machines with 
  7. address buses capable of accessing more than 1024K, and requires 
  8. a 286 processor or higher; the AT was the first machine that 
  9. supported extended memory.  DOS can only access the first 1024K 
  10. of any machine's address space, and therefore cannot access 
  11. extended memory directly; programs that access extended memory 
  12. generally must go into protected mode to do so.  Real-mode 
  13. programs that use extended memory, such as VDISK.SYS, do not run 
  14. their code above 1024K; they go into protected mode long enough 
  15. to store data in extended memory, then return to real 
  16. mode.  Extended memory should not be confused with expanded 
  17. memory, which does not occupy specific memory addresses and which 
  18. is associated with special mapping hardware that allows it to 
  19. appear as if it is located below 1024K. 
  20.  
  21. DESQview cannot run conventional, real-mode DOS programs in 
  22. extended memory (unless the extended memory is converted into 
  23. expanded memory, a process that is easily accomplished on a 386 
  24. machine with the help of Quarterdeck's QEMM-386).  We can only 
  25. accomplish the difficult feat of multitasking beyond 640K with 
  26. the aid of the hardware mapping capabilities that expanded memory 
  27. can provide.  Extended memory, by contrast, is not intelligent 
  28. memory: it simply sits above 1024K.  
  29.  
  30. In 1986 Quarterdeck discovered a loophole in DOS that allows 
  31. programs to access the first 64K of extended memory without going 
  32. into protected mode.  DESQview 2.00 and later versions come with 
  33. a driver, QEXT.SYS, which, when placed in the CONFIG.SYS file and 
  34. used in conjunction with our XDV.COM or DV.COM loaders, allows 
  35. DESQview to take 63K of its code out of conventional memory and 
  36. place it in extended memory between 1024K and 1088K.  QEXT.SYS is 
  37. usually only needed on 286 systems, as QEMM-386 is capable of 
  38. accomplishing the same task on 386 systems.
  39.  
  40. In 1988 Microsoft, using the same loophole discovered earlier by 
  41. Quarterdeck, announced the existence of the Extended Memory 
  42. Specification (XMS), which governs DOS-based access to the first 
  43. 64K of extended memory as well as protected-mode access to the 
  44. rest of extended memory and access to blocks of memory between 
  45. 640K and 1024K.  The XMS has become a standard for extended 
  46. memory allocation, and DESQview 2.26 and later versions support 
  47. running programs that allocate memory through the XMS inside 
  48. DESQview windows.  In addition, the copy of QEXT.SYS that comes 
  49. with DESQview 2.26 and later versions functions as an XMS 
  50. manager, and can, if desired, give other programs access to the 
  51. first 64K of extended memory instead of DESQview.  (Only one 
  52. program at a time can use this 64K block.)  QEXT.SYS performs the 
  53. same XMS functions as Microsoft's XMS manager HIMEM.SYS, and 
  54. should be used instead of, not in addition to, HIMEM.SYS.
  55.  
  56. Though DESQview cannot run conventional, real-mode DOS programs 
  57. in extended memory, it can swap DOS program back and forth from 
  58. extended memory - if the extended memory is used as a RAM disk 
  59. and if the drive letter of the RAM disk is entered in the SWAP 
  60. field of the DESQview Setup in the Logical Drives section.  
  61. Programs that are swapped out are not running, but swapping 
  62. programs back and forth to extended memory (which occurs 
  63. automatically under the above circumstances when DESQview runs 
  64. out of multitasking memory) is much faster than swapping to the 
  65. hard disk.
  66.  
  67. It has become increasingly common for large programs to take 
  68. advantage of protected mode to run in extended memory, using 
  69. supplementary utilities called DOS Extenders to handle 
  70. transitions between protected mode and real mode.  To make it 
  71. possible for DOS Extenders to coexist with 386 memory managers, 
  72. Quarterdeck and Phar Lap (a leading manufacturer of DOS 
  73. Extenders) collaborated in 1988 to create the VCPI (Virtual 
  74. Control Program Interface) specification.  Many other vendors, 
  75. including all major manufacturers of DOS Extenders, now support 
  76. the VCPI.  DESQview users who also have QEMM-386 (version 4.1 or 
  77. later) can run VCPI protected mode programs in DESQview windows 
  78. alongside DOS-based programs, without the need to reserve 
  79. separate sections of extended and expanded memory for the 
  80. different programs. The VCPI is a specification for 386 and 486 
  81. processors only.  DESQview 2.26 and later versions can run 
  82. multiple protected mode programs on 286 systems if the protected 
  83. mode programs use XMS services to access extended memory.  
  84. However, it is impossible on 286 systems to convert extended and 
  85. expanded memory back and forth on demand, as can be done on a 386 
  86. system or higher; the 286 systems must be configured with enough 
  87. extended memory to run the DOS Extender programs and enough 
  88. expanded memory to satisfy DESQview's needs and the needs of 
  89. other programs that use expanded memory.  
  90.  
  91. Microsoft Windows 3.0, which can go into protected mode and run 
  92. Windows-based applications in extended memory on a 286 system or 
  93. higher, is an example of a DOS Extender-type program that is not 
  94. a client of the VCPI.  However, special adjustments were made to 
  95. DESQview 2.3 and QEMM 5.1 to allow Windows 3.0 to run in its 
  96. standard mode (which uses the processor's protected mode) inside 
  97. a DESQview window alongside other applications.